<%@ page contentType="text/html; charset=iso-8859-1" language="java"%>
<%@ taglib prefix='c' uri='http://java.sun.com/jstl/core'%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@page import="java.util.Enumeration"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Ant Console</title>
<link rel="stylesheet" href="/ant-web-builder/css/2col_leftNav.css"
	type="text/css" />
<link href="/awb/css/pardo.css" rel="stylesheet" type="text/css" />

<script language="javascript" src="/awb/js/prototype.js">
</script>
<script language="javascript" src="/ant-web-builder/js/script.js">
</script>
</head>
<!-- The structure of this file is exactly the same as 2col_rightNav.html;
     the only difference between the two is the stylesheet they use -->
<body>
<div id="masthead">
<h1 id="siteName">&lt;ant-builder&gt;</h1>
<div id="globalNav"><a
	href="/ant-web-builder/main/main.awb?task=project">New project </a> | <a
	href="#">Load file </a></div>
</div>
<!-- end masthead -->
<div id="content"><c:set var="page" value="/static/home.awb"></c:set>
<c:choose>
	<c:when test="${param.task !=null}">
		<div id="breadCrumb">

		<div class="story"><form:form commandName="command" action="#">
			<table width="200" border="0" cellspacing="1" cellpadding="2">

				<tr>
					<td colspan="3" style="font-weight: bold;font-size: large">
					&lt;<c:out value="${param.task}"></c:out>&gt;</td>
				</tr>
				<tr>
					<td colspan="3">&nbsp;</td>
				</tr>
				<c:forEach items="${view.fields}" var="field">
					<c:set var="fieldName" value="${field.name}"></c:set>

					<tr>
						<td><form:label path="${field.name}" /><c:out
							value="${field.label}" /></td>
						<c:if test="${field.type == 'string'}">
							<td><form:input path="${field.name }" /></td>
						</c:if>
						<c:if test="${field.type == 'textarea'}">
							<td><form:textarea path="${field.name }" /></td>
						</c:if>
						<c:if test="${field.type == 'select'}">
							<td><form:select path="${field.name }"
								items="${view.servicesData[field.service]}" itemLabel="label"
								itemValue="value" /></td>
						</c:if>
						<c:if test="${field.type == 'checkbox'}">
							<td><form:checkbox path="${field.name }" /></td>
						</c:if>
						<c:if test="${field.type == 'radiobutton'}">
							<td><form:radiobutton path="${field.name }" /></td>
						</c:if>
						<c:if test="${field.type == 'password'}">
							<td><form:password path="${field.name }" /></td>
						</c:if>
						<td><pardo:map key="fieldName" map="errors"></pardo:map></td>

					</tr>
				</c:forEach>


				<tr>
					<td colspan="2"><input name="insert" type="submit"
						value="Inserisci" /></td>
				</tr>

			</table>
		</form:form></div>
		</div>
	</c:when>
	<c:otherwise>
		<div id="breadCrumb">default</div>
	</c:otherwise>
</c:choose> <!--  <h2 id="pageName">Page Name</h2>--></div>
<!--end content -->
<div id="navBar">
<div id="search">
<form action="#"><label>search</label> <input name="searchFor"
	type="text" size="10" /> <input name="goButton" type="submit"
	value="go" /></form>
</div>
<div id="sectionLinks"><c:set var="defaultMenu"
	value="/menu/mainmenu.awb" /> <c:choose>
	<c:when test="${param.task!=null}">
		<!-- dynamic menu -->
	</c:when>
	<c:otherwise>
		<!-- menu fisso -->
	</c:otherwise>
</c:choose></div>
<div class="relatedLinks" id="antCoreTasks" style="display: none">
<h3>Ant Core Tasks</h3>
<ul>
	<c:forEach var="item" items="${taskList}">
		<li><a
			href="/ant-web-builder/main/main.awb?task=<c:out value="${item.value}"/>"><c:out
			value="${item.key}" /></a></li>
	</c:forEach>
</ul>
</div>
<div class="relatedLinks" id="antAvailableTasks" style="display: none">
<h3>Ant Available Tasks</h3>
<ul>
	<li><a href="#">Ant</a></li>
	<li><a href="#">AntCall</a></li>
	<li><a href="#">Property</a></li>
	<li><a href="#">Related Link</a></li>
	<li><a href="#">Related Link</a></li>
	<li><a href="#">Related Link</a></li>
</ul>
</div>
<div class="relatedLinks" id="antOptionalTasks" style="display: none">
<h3>Ant Optional Tasks</h3>
<ul>
	<li><a href="#">Related Link</a></li>
	<li><a href="#">Related Link</a></li>
	<li><a href="#">Related Link</a></li>
	<li><a href="#">Related Link</a></li>
	<li><a href="#">Related Link</a></li>
	<li><a href="#">Related Link</a></li>
</ul>
</div>
<div id="advert"></div>
</div>
<!--end navbar -->
<div id="siteInfo"><img src="" width="44" height="22" /> <a
	href="#">About Us</a> | <a href="#">Site Map</a> | <a href="#">Privacy
Policy</a> | <a href="#">Contact Us</a> | &copy;2003 Company Name</div>
<br />
</body>
</html>
